package com.demoproject.entity;

import com.demoproject.core.BaseEntity;

import java.sql.Date;

public class User extends BaseEntity {

    private String username;    // 用户名
    private String password;    // 登录密码
    private Integer gender;     // 性别
    private Date birthday;      // 出生年月

    private static final long serialVersionUID = 1L;

    public User(Long id, String username, String password, Integer gender, Date birthday) {
        super(id);
        this.username = username;
        this.password = password;
        this.gender = gender;
        this.birthday = birthday;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
